//
//  ViewController.m
//  WindowAndStatusBar
//
//  Created by 李明明 on 15/10/9.
//  Copyright © 2015年 李明明. All rights reserved.
//

#import "ViewController.h"
#import "TestView.h"

@interface ViewController () <ViewDelegate>

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    
}
- (IBAction)targetAction:(id)sender
{
    TestView *view = [[[NSBundle mainBundle] loadNibNamed:@"TestView" owner:self options:nil] lastObject];
    [view show];
    view.delegate = self;
}
- (void)clickAction
{
    
    [self performSegueWithIdentifier:@"click2tabviewcontroller" sender:nil];
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
